using System;
using System.Collections.Generic;
using System.Text;

namespace Publicuse.Entity
{
  /// <summary>
  /// 调用百度api接口获取节假日
  /// </summary>
  public class CalendarBD
  {
    public int status { get; set; }
    public List<CalendarDataBD> data { get; set; }
  }
  public class CalendarDataBD
  {
    //public Holiday holiday { get; set; }
    public List<HolidayBD> holiday { get; set; }
  }
  public class HolidayBD
  {
    public string desc { get; set; }
    public string festival { get; set; }
    public List<HolidayList> list { get; set; }
    public string name { get; set; }
    public string rest { get; set; }

  }
  public class HolidayList
  {
    public string date { get; set; }
    /// <summary>
    /// 1休息2上班
    /// </summary>
    public int status { get; set; }
    public string remark
    {
      get
      {
        return status == 1 ? "休假" : "上班";
      }
    }
  }
  public class Calendar2BD
  {
    public int status { get; set; }
    public List<CalendarData2BD> data { get; set; }
  }
  public class CalendarData2BD
  {
    public HolidayBD holiday { get; set; }
  }
}
